package com.zayats.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import org.springframework.jdbc.core.RowMapper;

import com.zayats.model.Family;

public class FamiliesRowMapper implements RowMapper {
	public Object mapRow(ResultSet result, int arg1) throws SQLException {

		Family temp = new Family();
		temp.setFamilyId(result.getInt("family_id"));
		temp.setName(result.getString("name"));
		temp.setUsername(result.getString("username"));
		return temp;
	}
}